﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Mvc;

namespace HtmlExtensions{
    public static class HtmlExtensions
    {
        public static HtmlString jQueryCdn(this System.Web.Mvc.HtmlHelper helper, string version,string uiVersion,string theme) {
            return new HtmlString( string.Format( @"<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/{0}/jquery.min.js'>
</script><script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jqueryui/{1}/jquery-ui.min.js'></script>
<link rel='stylesheet' href='http://ajax.googleapis.com/ajax/libs/jqueryui/{1}/themes/{2}/jquery-ui.css' type='text/css'>",version,uiVersion,theme));
        }
    }
}